home *** CD-ROM | disk | FTP | other *** search
- on changevolume
- global mysoundlevel, volleft, volright, volrange
- puppetSound("bees5")
- set rumpus to the castNum of sprite 41
- set spritehor to the mouseH
- repeat while the mouseDown
- set getmouse to the mouseH
- if (getmouse >= volleft) and (getmouse <= volright) then
- set spritehor to getmouse
- else
- if getmouse < volleft then
- set spritehor to volleft
- else
- set spritehor to volright
- end if
- end if
- set the locH of sprite 41 to spritehor
- set the castNum of sprite 41 to rumpus + random(2) - 1
- set mysoundlevel to 7.0 * (spritehor - volleft) / volrange
- updateStage()
- end repeat
- set mysoundlevel to 7.0 * (spritehor - volleft) / volrange
- set the castNum of sprite 41 to rumpus
- set the soundLevel to mysoundlevel
- puppetSound("bing")
- updateStage()
- end
-
- on setupvolume
- global mysoundlevel, volleft, volright, volrange
- puppetSprite(41, 1)
- set volleft to the left of sprite 39
- set volright to the right of sprite 39
- set volrange to volright - volleft
- set the locH of sprite 41 to volleft + (mysoundlevel * volrange / 7.0)
- updateStage()
- end
-